package cn.yunhe.pojo;

public class News {
    private int newsId;
    private String title;
    private String context;
    private String writeTime;
    private String pic;
    private Admin admin;
    private Board board;

    public News() {
    }

    public News(int newsId, String title, String context) {
        this.newsId = newsId;
        this.title = title;
        this.context = context;
    }

    public News(String title, String context, String writeTime, Admin admin, Board board) {
        this.title = title;
        this.context = context;
        this.writeTime = writeTime;
        this.admin = admin;
        this.board = board;
    }

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(String writeTime) {
        this.writeTime = writeTime;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Board getBoard() {
        return board;
    }

    public void setBoard(Board board) {
        this.board = board;
    }
}
